<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script>
			var fruit=["苹果","例子","橙子"];
			var fruit1=new Array("pear","apple","orange");
			console.log(("fruit个数："+fruit.length));
			console.log("fruit:"+fruit);
			console.log("fruit.toString:"+fruit.toString());
			console.log(fruit.join());
			console.log(fruit.join("、"));
			console.log(fruit1.concat(fruit));
			console.log(fruit.sort());
			console.log(fruit1.sort());
			console.log(fruit.slice(1,3));
			console.log(fruit1.slice(1,3));
			console.log(fruit.reverse());
			console.log(fruit);
			
		</script>
	</head>
	<body>
	</body>
</html>
